<h2>Property filter</h2>
<div class="property-filter widget">
	<div class="content">
		<form method="get" action="<?php echo $action; ?>" class="form-search-box">
			<div class="keyword control-group"><input type="text" class="span12"
				placeholder="<?php echo $text_keyword_of_properties; ?>" id="keyword"
				name="keyword" value="<?php echo $keyword; ?>"></div>
			<!-- /.control-group -->
			<div class="type control-group"><label class="control-label"
				for="inputType"> <?php echo $text_property_classification; ?> </label>
			<div class="controls"><select name="ddlPropertyClss"
				id="ddlPropertyClss" class="span12">
				<option selected="selected" value=""><?php echo $text_all; ?></option>
				<?php foreach($dd_propertycategory as $val) { ?>
				<option value="<?php echo $val->Type; ?>"
				<?php if($propertytypeclss == $val->Type) {echo 'selected="selected"';} ?>><?php echo $val->Type; ?></option>
				<?php } ?>
			</select></div>
			<!-- /.controls --></div>
			<!-- /.control-group -->
			<div class="type control-group"><label class="control-label"
				for="inputType"> <?php echo $text_propertytype; ?> </label>
			<div class="controls"><select name="ddlPropertyType"
				id="ddlPropertyType" class="span12">
				<option value="" selected="selected"><?php echo $text_all; ?></option>
			</select></div>
			<!-- /.controls --></div>
			<!-- /.control-group -->
			<div class="location control-group"><label class="control-label"for="inputCity"> City </label>
				<div class="controls city_advance_search">
				<div class="row-fluid">
				<div class="span12"><span
					class="selections search_area_selections2 span12"
					id="a_search_city_area_advanced_selections"><span><?php echo $text_select_city; ?></span></span>
				</div>
				</div>
				<div id="ddlCity" class="row-fluid search_cityareapanel selectpanel"
					style="display: none;">
				<div class="span12"><label
					for="city_<?php echo $this->config->item('market'); ?>"
					class="all_cities"> <input type="checkbox" value
					id="city_<?php echo $this->config->item('market'); ?>"
					class="formcheck childCheckBoxForCity"
					onclick="sbRestArea('search_area_selections2','childCheckBoxForCity','<?php echo $text_cities_selected; ?>')"
					<?php if(!is_array($cities)) {echo 'checked="checked"';} ?>> <span
					style="cursor: default;"
					onclick="sbRestArea('search_area_selections2','childCheckBoxForCity','<?php echo $text_cities_selected; ?>')"><?php echo $text_all; ?></span>
				</label> <?php foreach ($lkup_cities as $city) { ?> <label
					for="city_<?php echo $city->City_ID; ?>" class="child_city"> <input
					type="checkbox" value="<?php echo $city->City_ID; ?>"
					<?php if(is_array($cities) && in_array($city->City_ID, $cities)){echo 'checked="checked"';}?>
					id="sbChks<?php echo $city->City_ID; ?>"
					class="formcheck childCheckBoxForCity" name="cities[]"
					onclick="sbPopulateArea('search_area_selections2','childCheckBoxForCity','<?php echo $text_cities_selected; ?>')">
				<span style="cursor: default;" class="sbChks"
					onclick="sbCheckUncheck('sbChks<?php echo $city->City_ID; ?>','search_area_selections2','childCheckBoxForCity','<?php echo $text_cities_selected; ?>')"><?php echo $city->Name; ?></span>
				</label> <?php } ?></div>
				</div>
				</div>
				<!-- /.controls -->
			</div>
			<!-- /.control-group -->
			<div class="location control-group"><label class="control-label"
				for="inputLocation"> Location </label>
			<div id="location_advance_search"
				class="controls location_advance_search">
			<div id="ddlLocation_Heading" class="row-fluid">
			<div class="span12"><span
				class="selections search_location_area_selections2 span12"
				id="a_search_location_area_advanced_selections"><span><?php echo $text_select_location; ?></span></span>
			</div>
			</div>
			<div id="ddlLocation"
				class="row-fluid search_locationareapanel selectpanel"
				style="display: none;"></div>
			</div>
			</div>
			<!-- /.location_advance_search -->
			<div class="form-actions"><input type="submit" value="Filter now!"
				class="btn btn-primary btn-large"></div>
		<!-- /.form-actions -->
		</form>
	</div>
	<!-- /.content -->
</div>
<!-- /.property-filter -->
